import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Reg from '../components/Reg'
import * as RegActions from '../actions/reg'

console.log('Reg',RegActions);

function mapStateToProps(state) {
  return {
     reg: state.reg
  }
}
function mapDispatchToProps(dispatch) {
  return bindActionCreators(RegActions, dispatch)
}

export default connect(mapStateToProps, mapDispatchToProps)(Reg)
